<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WAN IP 监控</title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100">
    <div class="container mx-auto px-4 py-8">
        <h1 class="text-4xl font-bold mb-8">WAN IP 监控</h1>
        
        <div class="bg-white rounded-lg shadow p-6 mb-6">
            <h2 class="text-2xl font-semibold mb-4">当前时间</h2>
            <p id="time" class="text-xl"></p>
            <p id="greeting" class="text-lg text-gray-600"></p>
        </div>

        <div class="bg-white rounded-lg shadow p-6">
            <h2 class="text-2xl font-semibold mb-4">IP 地址</h2>
            <div class="mb-6">
                <h3 class="text-xl font-semibold mb-2">IPv4 地址</h3>
                <ul id="ipv4-list" class="space-y-2"></ul>
            </div>
            <div>
                <h3 class="text-xl font-semibold mb-2">IPv6 地址</h3>
                <ul id="ipv6-list" class="space-y-2"></ul>
            </div>
            <p id="modification-date" class="mt-4 text-gray-500"></p>
        </div>
    </div>

    <script src="/js/time.js"></script>
    <script src="/js/ip_display.js"></script>
</body>
</html> 